package com.mybatisplus.mp.myanno;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

@Getter
@RequiredArgsConstructor// 会生成一个包含常量，和标识了NotNull的变量的构造方法。生成的构造方法是私有的private
public enum MyTestEnum {
    TYPE1("1","类别1"),TYPE2("2","类别2");
    private final String code;
    private final String message;


    @Override
    public String toString() {
        return code+":"+message;
    }
}
